package com.loong.framework.dto;

import static io.swagger.v3.oas.annotations.media.Schema.RequiredMode.REQUIRED;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import java.io.Serial;
import java.io.Serializable;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * Created by IntelliJ IDEA. @Author : Ten.X
 *
 * @create 2022/9/24 23:24
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class IdParamDTO implements Serializable {

  @Serial
  @TableField(exist = false)
  private static final long serialVersionUID = 1L;

  @Schema(description = "查询id", requiredMode = REQUIRED)
  @NotBlank(message = "id不可为空")
  private String id;
}
